

m = [2, 3, 5, 5, 2, 2, 3, 3, 4, 5, 4, 4]

print (m[2:7][::-1])


m = [2, 3, 5, 5, 2, 2, 3, 3, 4, 5, 4, 4]

print (m[::-1][::2])